package com.google.cbmgraph;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

public class GraphView extends Fragment{
	LinearLayout viewer = null;
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
	        Bundle savedInstanceState) {
	   viewer = (LinearLayout)inflater.inflate(R.layout.graph_view, container, false);	
	    return viewer;
	}
    public void updateGraphName(String name) {
        if (viewer != null) {
        	GraphMap view2 = (GraphMap) viewer.findViewById(R.id.graphMap1);
            view2.loadTitle(name);
        }
    }
}
